# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=newsraft
pkgver=0.27
pkgrel=0
pkgdesc="Feed reader with ncurses user interface"
url="https://codeberg.org/newsraft/newsraft"
arch="all"
license="ISC"
makedepends="
	curl-dev
	expat-dev
	gumbo-parser-dev
	ncurses-dev
	sqlite-dev
	yajl-dev
	"
subpackages="$pkgname-doc"
source="https://codeberg.org/newsraft/newsraft/archive/newsraft-$pkgver.tar.gz"
builddir="$srcdir/newsraft"

build() {
	make -e all
}

check() {
	./newsraft -v
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
06d8a9fc147ea54f03adb4dda01163a51938014c48045fe3a5fe0275b3505148cf04af784229fc8b17ef8278bc5ce7b918e0b930610aa25caa4b4094fbc6ab2b  newsraft-0.27.tar.gz
"
